package com.shop.cereshop.business.dao.dl;

import com.shop.cereshop.business.dl.logic.domain.BuyerWithdrawal;
import com.shop.cereshop.business.dl.logic.domain.BuyerWithdrawalGetAllParam;
import com.shop.cereshop.commons.domain.buyer.CereBuyerWithdrawal;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface CereBuyerWithdrawalDAO {
    int deleteByPrimaryKey(Long withdrawalId);

    int insert(CereBuyerWithdrawal record);

    int insertSelective(CereBuyerWithdrawal record);

    CereBuyerWithdrawal selectByPrimaryKey(Long withdrawalId);

    int updateByPrimaryKeySelective(CereBuyerWithdrawal record);

    int updateByPrimaryKey(CereBuyerWithdrawal record);

    List<BuyerWithdrawal> getAll(BuyerWithdrawalGetAllParam param);

    BuyerWithdrawal getById(@Param("withdrawalId") Long withdrawalId);
}